<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<html>
<head>
<title>Configuring the Library</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="generator" content="Doc-O-Matic" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <link rel="STYLESHEET" href="default.css" type="text/css" />

<script type="text/javascript" src="scripts.js"></script>
</head>
<body class="Element700" onload="onBodyLoadEx('frames.html', 'topic', '00104.html');" onmousedown="onBodyMouseDown();">

<!-- Begin Popups -->

<!-- End Popups -->

<!-- Begin Page Header -->
<div class="Element710" id="areafixed">
<div class="Element94">
<a href="00007.html" target="topic">Driver Libraries Help</a> &gt; <a href="00109.html" target="topic">SDMMC Driver Library</a> &gt; <a href="00104.html" target="topic">Configuring the Library</a></div>
<div class="Element92">
<table width="100%" cellspacing="0" cellpadding="0">
<tr><td width="25%">
<div class="Element1">
MPLAB Harmony Core Help</div>
</td><td width="25%">
<div class="Element2">
<a href="contents.html" target="tocidx">Contents</a> | <a href="00007.html" target="topic">Home</a></div>
</td><td width="25%">
<div class="Element90">
<a href="00107.html" target="topic">Previous</a> | <a href="00109.html" target="topic">Up</a> | <a href="00103.html" target="topic">Next</a></div>
</td><td width="25%">
<div class="Element96">
<a href="mailto:docerrors@microchip.com&subject=MPLAB Harmony Documentation Feedback (Topic ID: DRV SDMMC Configuring the Library Topic Title: Configuring the Library)&body=Thank you for your feedback! Please include a description of your feedback, and indicate whether you are reporting an an error in the documentation or an enhancement.">Documentation Feedback</a><br> <a href="http://support.microchip.com" target="_blank">Microchip Support</a></div>
</td></tr></table><div class="Element5">
Configuring the Library</div>
</div>
</div>

<!-- End Page Header -->

<!-- Begin Client Area -->
<div class="Element720" id="areascroll">
<div class="Element721">

<!-- Begin Page Content -->
<a name="PageContent"></a><div class="Element58">
<a name="4465736372697074696F6E"></a><div class="Element11">
<div class="Element10">
<p class="Element10">
<span style="color: #000000">The SDMMC driver library should be configured through the MHC. The following figures show the MHC configuration window for the SDMMC driver and brief description.</span>&nbsp;</p>
<p class="Element10" style="text-align: center;">
<img src="drv_sdhc_async_fs_mhc_config.png" border="0" alt="" title="">&nbsp;</p>
<p class="Element10" style="text-align: center;">
<strong>Asynchronous Mode with SD protocol and File-System</strong>&nbsp;</p>
<p class="Element10" style="text-align: center;">
&nbsp;</p>
<p class="Element10" style="text-align: center;">
<img src="drv_sdhc_async_rtos_mhc_config.png" border="0" alt="" title="">&nbsp;</p>
<p class="Element10" style="text-align: center;">
<strong>Asynchronous Mode with SD protocol, RTOS and without File-System</strong>&nbsp;</p>
<p class="Element10" style="text-align: center;">
&nbsp;</p>
<p class="Element10" style="text-align: center;">
<img src="drv_sdhc_eemc_with_fs.png" border="0" alt="" title="">&nbsp;</p>
<p class="Element10" style="text-align: center;">
<strong>Asynchronous Mode with eMMC protocol and File-System</strong></p><p class="Element10">
&nbsp;</p>
<p class="Element10">
&nbsp;</p>
<div class="Element15">
Common User Configuration for all Instances</div>

<ul class="Element630">
<li class="Element600"><span style="color: #000000"><strong>Driver Mode:</strong></span>
<ul class="Element631">
<li class="Element601"><span style="color: #000000">Allows User to select the mode of driver(Asynchronous or Synchronous).This setting is common for all the instances.</span></li>
<li class="Element601"><span style="color: #000000">Only Asynchronous mode is supported for now</span></li>
</ul></li>
</ul><p class="Element10">
&nbsp;</p>
<div class="Element15">
Instance Specific User Configurations</div>

<ul class="Element630">
<li class="Element600"><strong>PLIB Used:</strong>
<ul class="Element631">
<li class="Element601">Specifies the peripheral library used by the SDMMC driver. This can either be the HSMCI PLIB or the SDHC PLIB.</li>
</ul></li>
<li class="Element600"><span style="color: #000000"><strong>Number of Clients:</strong></span>
<ul class="Element631">
<li class="Element601"><span style="color: #000000">Specifies number of clients that can access the specific instance of the driver</span></li>
</ul></li>
<li class="Element600"><span style="color: #000000"><strong>Transfer Queue Size:</strong></span>
<ul class="Element631">
<li class="Element601"><span style="color: #000000">Specifies maximum number of requests that can be queued</span></li>
<li class="Element601"><span style="color: #000000">When connected to file system this value is set to 1 and is non modifiable</span></li>
</ul></li>
<li class="Element600"><span style="color: #000000"><strong>Data Transfer Bus Width:</strong></span>
<ul class="Element631">
<li class="Element601"><span style="color: #000000">Specifies the Bus width to be used for data transfer (1-Bit, 4-Bit)</span></li>
</ul></li>
<li class="Element600"><span style="color: #000000"><strong>Bus Speed:</strong></span>
<ul class="Element631">
<li class="Element601">Specifies Bus Speed to be used for Communication with SD-card (DEFAULT_SPEED, HIGH_SPEED)</li>
<li class="Element601">Standard SD-Cards only support Default Speed</li>
<li class="Element601">SD-Cards with High Capacity support Both Default and High Speed</li>
</ul></li>
<li class="Element600"><span style="color: #000000"><strong>Protocol:</strong></span>
<ul class="Element631">
<li class="Element601">Specifies whether SD or eMMC protocol is enabled in the SDMMC driver.</li>
</ul></li>
<li class="Element600"><strong>Sleep when idle?</strong>
<ul class="Element631">
<li class="Element601">This option is available only when eMMC protocol is enabled.</li>
<li class="Element601">Enabling this option puts the eMMC card in sleep mode when no data transfers are pending. When a data transfer is requested, the SDMMC driver brings the eMMC card out of sleep mode. Refer to the eMMC datasheet for the switching time from standby to sleep and vice-versa.</li>
</ul></li>
<li class="Element600"><strong>Card Detection Method:</strong>
<ul class="Element631">
<li class="Element601">Specifies the card detection method used by the SDMMC driver. Either SDCD pin or Polling method can be used to detect insertion/removal of SD Card</li>
</ul></li>
<li class="Element600"><strong>Polling Interval (ms):</strong>
<ul class="Element631">
<li class="Element601">If the Card Detection Method is selected as &quot;Use Polling&quot;, then this option specifies the rate at which the SDMMC driver checks for SD Card insertion/removal</li>
</ul></li>
<li class="Element600"><span style="color: #000000"><strong>File system for SDMMC Driver Enabled:</strong></span>
<ul class="Element631">
<li class="Element601"><span style="color: #000000">Indicates whether SDMMC driver will register its services with the file system or not.</span></li>
<li class="Element601"><span style="color: #000000">This option is automatically checked when the file system is connected to the SDMMC driver.</span></li>
</ul></li>
<li class="Element600"><strong>RTOS Configuration:</strong>
<ul class="Element631">
<li class="Element601"><strong>Stack Size:</strong>
<ul class="Element632">
<li class="Element602">Maximum Stack size to be allocated for the SDMMC Driver</li>
</ul></li>
<li class="Element601"><strong>Task Priority:</strong>
<ul class="Element632">
<li class="Element602">Specifies Priority for the SDMMC driver task thread</li>
</ul></li>
<li class="Element601"><strong>Use Task Delay?</strong>
<ul class="Element632">
<li class="Element602">Specifies if the task delay should be enabled for the SDMMC task routine or not. In an RTOS environment, this option must be enabled to allow all the RTOS threads to run in a co-operative manner.</li>
</ul></li>
<li class="Element601"><strong>Task Delay:</strong>
<ul class="Element632">
<li class="Element602">Specifies Delay to put the SDMMC task Thread in blocked state after each call to the driver task routine. This allows other threads in the system to run.</li>
</ul></li>
</ul></li>
</ul></div>
</div>
</div>
<!-- End Page Content -->

<!-- Begin Page Footer -->
<div class="Element95">
<a href="00007.html" target="topic">Driver Libraries Help</a> &gt; <a href="00109.html" target="topic">SDMMC Driver Library</a> &gt; <a href="00104.html" target="topic">Configuring the Library</a></div>
<div class="Element93">
<table width="100%" cellspacing="0" cellpadding="0">
<tr><td width="25%">
<div class="Element3">
MPLAB Harmony Core Help</div>
</td><td width="25%">
<div class="Element4">
<a href="contents.html" target="tocidx">Contents</a> | <a href="00007.html" target="topic">Home</a></div>
</td><td width="25%">
<div class="Element91">
<a href="00107.html" target="topic">Previous</a> | <a href="00109.html" target="topic">Up</a> | <a href="00103.html" target="topic">Next</a></div>
</td><td width="25%">
<div class="Element97">
<a href="mailto:docerrors@microchip.com&subject=MPLAB Harmony Documentation Feedback (Topic ID: DRV SDMMC Configuring the Library Topic Title: Configuring the Library)&body=Thank you for your feedback! Please include a description of your feedback, and indicate whether you are reporting an an error in the documentation or an enhancement.">Documentation Feedback</a><br> <a href="http://support.microchip.com" target="_blank">Microchip Support</a></div>
</td></tr></table></div>

<!-- End Page Footer -->
</div>
</div>

<!-- End Client Area -->
</body></html>